﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace TicketM
{
    public partial class ViewHistory : Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            this.GridView1.SelectedIndexChanged += GridView1_SelectedIndexChanged;
            if (Session["sProject"].ToString() == "" || Session["sProject"] == null)
            {
                Session.Add("refPage", HttpContext.Current.Request.Url);
                Response.Redirect("Configuration/ProjectSelection.aspx");
            }
        }

        protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
        {
            DetailsView1.DataSource = OneTicket;
            DetailsView1.DataBind();
            GridView2.DataSource = EffortsDataSource;
            GridView2.DataBind();
        }



    }
}